package com.atguigu.admin.service.impl;

import com.atguigu.admin.bean.City;
import com.atguigu.admin.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CityServiceImpl implements com.atguigu.admin.service.CityService {
    @Autowired
    CityMapper cityMapper;
    public City getCityNameById(Long id) {
        return cityMapper.getCityNameById(id);
    }

    public void save(City city) {
         cityMapper.save(city);
    }
}
